#!/usr/bin/env python3
import sys

def m(a, b, c):
    return a * b * c

def main():
    #t = [1, 2 , 3]
    #print m(*t)
    #t = [1, 2, 3, 4]
    #print m(*t)
    l = [3, 5, 7, 4, 5]
    first, *med, last = l
    print(l, first, med, last)
    l.sort()
    print(l)

if __name__ == '__main__':
    main()
